package com.example.everything_is_possible;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class JiSuanActivity extends AppCompatActivity {

    private Button mbtn_back;

    private Button mbtn_leng;
    private Button mbtn_weig;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ji_suan);

        mbtn_back = findViewById(R.id.btn_back5);

        mbtn_leng = findViewById(R.id.app_length);
        mbtn_weig = findViewById(R.id.app_weight);

        mbtn_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        mbtn_weig.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = null;
                intent = new Intent(JiSuanActivity.this,WeightActivity.class);
                startActivity(intent);
            }
        });

        mbtn_leng.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = null;
                intent = new Intent(JiSuanActivity.this,LengthActivity.class);
                startActivity(intent);
            }
        });
    }
}